<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>

<%@ Register Assembly="NumericTextBox" Namespace="LZDollarTextBox" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <meta http-equiv="Pragma" content="no-cache">
    <%--<style type="text/css">
        .numerictext{ text-align:right;}
    </style>--%>
    <style type="text/css">
        .numerictext111
        {
            text-align: left;
        }
    </style>
    <style type="text/css">
        body
        {
            font-family: Arial;
            font-size: small;
        }
    </style>

    <script type="text/javascript">
        function TestSplit() {
            var x = '12,312,312.777,888,999';
            x = x.split('.');
            var RoD = x[1].replace(/,/g, '')
            var y = x[0] + '.' + RoD;
            alert(y);
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <cc1:NumericTextBox ID="NumericTextBox1" ControlWidth="100" runat="server" AllowDecimal="True"
            DecimalPlaces="2" DollarSign="True" CanWrite="False"></cc1:NumericTextBox>
        &nbsp;&nbsp;<br />
        <asp:Button ID="Button1" runat="server" Text="Get Text Value" />
        <br />
        <br />
        text=<asp:Label ID="Label2" runat="server"></asp:Label><br />
        textclean=<asp:Label ID="Label1" runat="server"></asp:Label>
        <br />
        NumericTextBox2:<cc1:NumericTextBox ID="DIO" ControlWidth="120" runat="server" AllowDecimal="True"
            Text="1232.2123122" DecimalPlaces="4" CanWrite="True" DollarSign="False" />
        <br />
        NumericTextBox3:
        <cc1:NumericTextBox ID="NumericTextBox3" ControlWidth="120" runat="server" AllowDecimal="True"
            Text="111.2222222" DecimalPlaces="5" DollarSign="True" CanWrite="True"></cc1:NumericTextBox>
        <br />
        Nowrite:
        <cc1:NumericTextBox ID="NumericTextBox5" ControlWidth="120" runat="server" AllowDecimal="True"
            Text="111.2222222" DecimalPlaces="2" DollarSign="True" CanWrite="False"></cc1:NumericTextBox>
        <br />
        Sample Standard Textbox:<asp:TextBox runat="server" ID="txtTest" Text="sample" />
        <br />
        <cc1:NumericTextBox runat="server" ID="NumberOfViewers" AllowDecimal="True" CanWrite="True"
            DecimalPlaces="2" NumberGrouping="True" DollarSign="true" Width="80" />
        <br />
        <br />
        <cc1:NumericTextBox runat="server" ID="Numerictextbox4" AllowDecimal="True" CanWrite="True"
            DecimalPlaces="0" NumberGrouping="True" Width="80" />
        <br />
        <br />
        <asp:Button runat="server" ID="testSplit" Text="Test Split" OnClientClick="return TestSplit();" />
        <br />
        <br />
        <asp:Button ID="btnRefreshUpdatePanel" runat="server" Text="Refresh Update Panel" />
        <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                Inside Update Panel:
                <asp:Label ID="lblRefreshed" runat="server"></asp:Label>
                <br />
                <br />
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AutoGenerateEditButton="True"
                    CellPadding="4" ForeColor="#333333" GridLines="None">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:TemplateField HeaderText="Test">
                            <ItemTemplate>
                                <cc1:NumericTextBox ID="NumericTextBox2" runat="server" AllowDecimal="True" CanWrite="True"
                                    DecimalPlaces="2" NumberGrouping="True"></cc1:NumericTextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnRefreshUpdatePanel" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <p>
        Loaded:
        <asp:Label ID="lblLoaded" runat="server"></asp:Label>
    </p>
   
    </form>
</body>
</html>
